package top.zhangjianyong.blog.params.role;

/**
 * 角色分页查询参数
 *
 * @author HDN
 * @since 2024/7/22 上午12:18
 */
public record RolePageParam(String roleName, Integer pageSize, Integer pageNum) {
  public RolePageParam {
    if (pageSize == null || pageSize < 1) pageSize = 1;
    if (pageNum == null || pageNum < 1) pageNum = 10;
  }
}
